using System;
using Gtk;
using AtDevice;

namespace GtkControls
{
    
    [TreeNode (ListOnly=true)]
    public class TextMessageNode : Gtk.TreeNode
    {
        private SMS _sms;
        
        public TextMessageNode(SMS sms)
        {
            _sms = sms;
        }
        
        [Gtk.TreeNodeValue (Column=0)]
        public string Number { get { return _sms.Number; } }
        
        [Gtk.TreeNodeValue (Column=1)]
        public string Content { get { return _sms.Content; } }
        
        [Gtk.TreeNodeValue (Column=2)]
        public string Time { get { return _sms.TimeStamp; } } 
        
        public SMS SMS { get { return _sms; } }
    }
}
